package com.zbkj.crmeb.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.CommonPage;
import com.crmeb.core.common.CommonResult;
import com.common.PageParamRequest;
import com.zbkj.crmeb.member.model.MerchantMemberBenefits;
import com.zbkj.crmeb.member.vo.MerchantMemberBenefitsVO;


/**
 * <p>
 * 商户会员权益表 服务类
 * </p>
 *
 * @author xx
 * @since 2022-05-10
 */
public interface IMerchantMemberBenefitsService extends IService<MerchantMemberBenefits> {

    /**
     * 会员权益添加
     * @param memberBenefitsVO
     * @return java.lang.Boolean
     */
    CommonResult<String> addMemberBenefits(MerchantMemberBenefitsVO memberBenefitsVO);

    /**
     * 会员权益查询
     * @param merId 商户id
     * @param pageParamRequest
     * @return com.common.CommonPage<com.zbkj.crmeb.member.model.MerchantMemberBenefits>
     */
    CommonPage<MerchantMemberBenefits> getMemberBenefits(Integer merId, PageParamRequest pageParamRequest);

    /**
     * 会员权益编辑
     * @param memberBenefitsVO
     * @return java.lang.Boolean
     */
    Boolean updMemberBenefits(MerchantMemberBenefitsVO memberBenefitsVO);

    /**
     * 会员权益删除
     * @param id
     * @return java.lang.Boolean
     */
    Boolean delMemberBenefits(Integer id);

    /**
     * 定时发放优惠券
     * @param
     */
    void distributeCouponsRegularly();

    /**
     * 开通会员自动发放优惠券
     * @param uid
     * @return java.lang.Boolean
     */
    void automaticallyIssueCoupons(Integer uid);





}
